\(\int \frac {(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^6} \, dx\) [246]
Optimal result
Integrand size = 26, antiderivative size = 132 \[
\int \frac {(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^6} \, dx=\frac {a^2 c^2 \cos ^5(e+f x)}{11 f (c-c \sin (e+f x))^8}+\frac {a^2 c \cos ^5(e+f x)}{33 f (c-c \sin (e+f x))^7}+\frac {2 a^2 \cos ^5(e+f x)}{231 f (c-c \sin (e+f x))^6}+\frac {2 a^2 \cos ^5(e+f x)}{1155 c f (c-c \sin (e+f x))^5}
\]
[Out]
1/11*a^2*c^2*cos(f*x+e)^5/f/(c-c*sin(f*x+e))^8+1/33*a^2*c*cos(f*x+e)^5/f/(c-c*sin(f*x+e))^7+2/231*a^2*cos(f*x+
e)^5/f/(c-c*sin(f*x+e))^6+2/1155*a^2*cos(f*x+e)^5/c/f/(c-c*sin(f*x+e))^5
Rubi [A] (verified)
Time = 0.17 (sec) , antiderivative size = 132, normalized size of antiderivative = 1.00, number of
steps used = 5, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {2815, 2751, 2750}
\[
\int \frac {(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^6} \, dx=\frac {a^2 c^2 \cos ^5(e+f x)}{11 f (c-c \sin (e+f x))^8}+\frac {2 a^2 \cos ^5(e+f x)}{1155 c f (c-c \sin (e+f x))^5}+\frac {2 a^2 \cos ^5(e+f x)}{231 f (c-c \sin (e+f x))^6}+\frac {a^2 c \cos ^5(e+f x)}{33 f (c-c \sin (e+f x))^7}
\]
[In]
Int[(a + a*Sin[e + f*x])^2/(c - c*Sin[e + f*x])^6,x]
[Out]
(a^2*c^2*Cos[e + f*x]^5)/(11*f*(c - c*Sin[e + f*x])^8) + (a^2*c*Cos[e + f*x]^5)/(33*f*(c - c*Sin[e + f*x])^7)
+ (2*a^2*Cos[e + f*x]^5)/(231*f*(c - c*Sin[e + f*x])^6) + (2*a^2*Cos[e + f*x]^5)/(1155*c*f*(c - c*Sin[e + f*x]
)^5)
Rule 2750
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[b*(g*C
os[e + f*x])^(p + 1)*((a + b*Sin[e + f*x])^m/(a*f*g*m)), x] /; FreeQ[{a, b, e, f, g, m, p}, x] && EqQ[a^2 - b^
2, 0] && EqQ[Simplify[m + p + 1], 0] && !ILtQ[p, 0]
Rule 2751
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[b*(g*C
os[e + f*x])^(p + 1)*((a + b*Sin[e + f*x])^m/(a*f*g*Simplify[2*m + p + 1])), x] + Dist[Simplify[m + p + 1]/(a*
Simplify[2*m + p + 1]), Int[(g*Cos[e + f*x])^p*(a + b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{a, b, e, f, g, m
, p}, x] && EqQ[a^2 - b^2, 0] && ILtQ[Simplify[m + p + 1], 0] && NeQ[2*m + p + 1, 0] && !IGtQ[m, 0]
Rule 2815
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Di
st[a^m*c^m, Int[Cos[e + f*x]^(2*m)*(c + d*Sin[e + f*x])^(n - m), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] &&
EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[m] && !(IntegerQ[n] && ((LtQ[m, 0] && GtQ[n, 0]) || LtQ[0,
n, m] || LtQ[m, n, 0]))
Rubi steps \begin{align*}
\text {integral}& = \left (a^2 c^2\right ) \int \frac {\cos ^4(e+f x)}{(c-c \sin (e+f x))^8} \, dx \\ & = \frac {a^2 c^2 \cos ^5(e+f x)}{11 f (c-c \sin (e+f x))^8}+\frac {1}{11} \left (3 a^2 c\right ) \int \frac {\cos ^4(e+f x)}{(c-c \sin (e+f x))^7} \, dx \\ & = \frac {a^2 c^2 \cos ^5(e+f x)}{11 f (c-c \sin (e+f x))^8}+\frac {a^2 c \cos ^5(e+f x)}{33 f (c-c \sin (e+f x))^7}+\frac {1}{33} \left (2 a^2\right ) \int \frac {\cos ^4(e+f x)}{(c-c \sin (e+f x))^6} \, dx \\ & = \frac {a^2 c^2 \cos ^5(e+f x)}{11 f (c-c \sin (e+f x))^8}+\frac {a^2 c \cos ^5(e+f x)}{33 f (c-c \sin (e+f x))^7}+\frac {2 a^2 \cos ^5(e+f x)}{231 f (c-c \sin (e+f x))^6}+\frac {\left (2 a^2\right ) \int \frac {\cos ^4(e+f x)}{(c-c \sin (e+f x))^5} \, dx}{231 c} \\ & = \frac {a^2 c^2 \cos ^5(e+f x)}{11 f (c-c \sin (e+f x))^8}+\frac {a^2 c \cos ^5(e+f x)}{33 f (c-c \sin (e+f x))^7}+\frac {2 a^2 \cos ^5(e+f x)}{231 f (c-c \sin (e+f x))^6}+\frac {2 a^2 \cos ^5(e+f x)}{1155 c f (c-c \sin (e+f x))^5} \\
\end{align*}
Mathematica [A] (verified)
Time = 2.36 (sec) , antiderivative size = 133, normalized size of antiderivative = 1.01
\[
\int \frac {(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^6} \, dx=\frac {a^2 \left (2079 \cos \left (\frac {1}{2} (e+f x)\right )-825 \cos \left (\frac {3}{2} (e+f x)\right )-55 \cos \left (\frac {7}{2} (e+f x)\right )+\cos \left (\frac {11}{2} (e+f x)\right )+2541 \sin \left (\frac {1}{2} (e+f x)\right )+1155 \sin \left (\frac {3}{2} (e+f x)\right )-165 \sin \left (\frac {5}{2} (e+f x)\right )+11 \sin \left (\frac {9}{2} (e+f x)\right )\right )}{9240 c^6 f \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^{11}}
\]
[In]
Integrate[(a + a*Sin[e + f*x])^2/(c - c*Sin[e + f*x])^6,x]
[Out]
(a^2*(2079*Cos[(e + f*x)/2] - 825*Cos[(3*(e + f*x))/2] - 55*Cos[(7*(e + f*x))/2] + Cos[(11*(e + f*x))/2] + 254
1*Sin[(e + f*x)/2] + 1155*Sin[(3*(e + f*x))/2] - 165*Sin[(5*(e + f*x))/2] + 11*Sin[(9*(e + f*x))/2]))/(9240*c^
6*f*(Cos[(e + f*x)/2] - Sin[(e + f*x)/2])^11)
Maple [C] (verified)
Result contains complex when optimal does not.
Time = 1.43 (sec) , antiderivative size = 110, normalized size of antiderivative = 0.83
| | |
method | result | size |
| | |
risch |
\(\frac {4 i a^{2} \left (2079 i {\mathrm e}^{6 i \left (f x +e \right )}+1155 \,{\mathrm e}^{7 i \left (f x +e \right )}-825 i {\mathrm e}^{4 i \left (f x +e \right )}-2541 \,{\mathrm e}^{5 i \left (f x +e \right )}-55 i {\mathrm e}^{2 i \left (f x +e \right )}+165 \,{\mathrm e}^{3 i \left (f x +e \right )}+i-11 \,{\mathrm e}^{i \left (f x +e \right )}\right )}{1155 f \,c^{6} \left ({\mathrm e}^{i \left (f x +e \right )}-i\right )^{11}}\) |
\(110\) |
parallelrisch |
\(-\frac {2 a^{2} \left (\tan ^{10}\left (\frac {f x}{2}+\frac {e}{2}\right )-3 \left (\tan ^{9}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+12 \left (\tan ^{8}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-20 \left (\tan ^{7}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+\frac {162 \left (\tan ^{6}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{5}-\frac {142 \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{5}+\frac {164 \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{7}-\frac {68 \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{7}+\frac {89 \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{21}-\frac {47 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{105}+\frac {152}{1155}\right )}{f \,c^{6} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{11}}\) |
\(153\) |
derivativedivides |
\(\frac {2 a^{2} \left (-\frac {2376}{7 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{7}}-\frac {512}{3 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{9}}-\frac {88}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{4}}-\frac {288}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{8}}-\frac {128}{11 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{11}}-\frac {932}{5 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{5}}-\frac {7}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{2}}-\frac {64}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{10}}-\frac {1}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1}-\frac {30}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{3}}-\frac {292}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{6}}\right )}{f \,c^{6}}\) |
\(178\) |
default |
\(\frac {2 a^{2} \left (-\frac {2376}{7 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{7}}-\frac {512}{3 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{9}}-\frac {88}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{4}}-\frac {288}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{8}}-\frac {128}{11 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{11}}-\frac {932}{5 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{5}}-\frac {7}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{2}}-\frac {64}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{10}}-\frac {1}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1}-\frac {30}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{3}}-\frac {292}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{6}}\right )}{f \,c^{6}}\) |
\(178\) |
norman |
\(\frac {\frac {52 a^{2} \left (\tan ^{11}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{c f}-\frac {304 a^{2}}{1155 c f}-\frac {2 a^{2} \left (\tan ^{14}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{c f}+\frac {6 a^{2} \left (\tan ^{13}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{c f}-\frac {28 a^{2} \left (\tan ^{12}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{c f}+\frac {94 a^{2} \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{105 c f}-\frac {574 a^{2} \left (\tan ^{10}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{5 c f}+\frac {714 a^{2} \left (\tan ^{9}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{5 c f}-\frac {17534 a^{2} \left (\tan ^{6}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{105 c f}+\frac {2228 a^{2} \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{105 c f}-\frac {3466 a^{2} \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{385 c f}-\frac {3524 a^{2} \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{55 c f}+\frac {6056 a^{2} \left (\tan ^{7}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{35 c f}-\frac {7016 a^{2} \left (\tan ^{8}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{35 c f}+\frac {10138 a^{2} \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{105 c f}}{\left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2} c^{5} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{11}}\) |
\(351\) |
| | |
|
|
|
[In]
int((a+a*sin(f*x+e))^2/(c-c*sin(f*x+e))^6,x,method=_RETURNVERBOSE)
[Out]
4/1155*I*a^2*(2079*I*exp(6*I*(f*x+e))+1155*exp(7*I*(f*x+e))-825*I*exp(4*I*(f*x+e))-2541*exp(5*I*(f*x+e))-55*I*
exp(2*I*(f*x+e))+165*exp(3*I*(f*x+e))+I-11*exp(I*(f*x+e)))/f/c^6/(exp(I*(f*x+e))-I)^11
Fricas [B] (verification not implemented)
Leaf count of result is larger than twice the leaf count of optimal. 332 vs. \(2 (128) = 256\).
Time = 0.25 (sec) , antiderivative size = 332, normalized size of antiderivative = 2.52
\[
\int \frac {(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^6} \, dx=-\frac {2 \, a^{2} \cos \left (f x + e\right )^{6} + 12 \, a^{2} \cos \left (f x + e\right )^{5} - 25 \, a^{2} \cos \left (f x + e\right )^{4} - 70 \, a^{2} \cos \left (f x + e\right )^{3} - 245 \, a^{2} \cos \left (f x + e\right )^{2} + 210 \, a^{2} \cos \left (f x + e\right ) + 420 \, a^{2} - {\left (2 \, a^{2} \cos \left (f x + e\right )^{5} - 10 \, a^{2} \cos \left (f x + e\right )^{4} - 35 \, a^{2} \cos \left (f x + e\right )^{3} + 35 \, a^{2} \cos \left (f x + e\right )^{2} - 210 \, a^{2} \cos \left (f x + e\right ) - 420 \, a^{2}\right )} \sin \left (f x + e\right )}{1155 \, {\left (c^{6} f \cos \left (f x + e\right )^{6} - 5 \, c^{6} f \cos \left (f x + e\right )^{5} - 18 \, c^{6} f \cos \left (f x + e\right )^{4} + 20 \, c^{6} f \cos \left (f x + e\right )^{3} + 48 \, c^{6} f \cos \left (f x + e\right )^{2} - 16 \, c^{6} f \cos \left (f x + e\right ) - 32 \, c^{6} f + {\left (c^{6} f \cos \left (f x + e\right )^{5} + 6 \, c^{6} f \cos \left (f x + e\right )^{4} - 12 \, c^{6} f \cos \left (f x + e\right )^{3} - 32 \, c^{6} f \cos \left (f x + e\right )^{2} + 16 \, c^{6} f \cos \left (f x + e\right ) + 32 \, c^{6} f\right )} \sin \left (f x + e\right )\right )}}
\]
[In]
integrate((a+a*sin(f*x+e))^2/(c-c*sin(f*x+e))^6,x, algorithm="fricas")
[Out]
-1/1155*(2*a^2*cos(f*x + e)^6 + 12*a^2*cos(f*x + e)^5 - 25*a^2*cos(f*x + e)^4 - 70*a^2*cos(f*x + e)^3 - 245*a^
2*cos(f*x + e)^2 + 210*a^2*cos(f*x + e) + 420*a^2 - (2*a^2*cos(f*x + e)^5 - 10*a^2*cos(f*x + e)^4 - 35*a^2*cos
(f*x + e)^3 + 35*a^2*cos(f*x + e)^2 - 210*a^2*cos(f*x + e) - 420*a^2)*sin(f*x + e))/(c^6*f*cos(f*x + e)^6 - 5*
c^6*f*cos(f*x + e)^5 - 18*c^6*f*cos(f*x + e)^4 + 20*c^6*f*cos(f*x + e)^3 + 48*c^6*f*cos(f*x + e)^2 - 16*c^6*f*
cos(f*x + e) - 32*c^6*f + (c^6*f*cos(f*x + e)^5 + 6*c^6*f*cos(f*x + e)^4 - 12*c^6*f*cos(f*x + e)^3 - 32*c^6*f*
cos(f*x + e)^2 + 16*c^6*f*cos(f*x + e) + 32*c^6*f)*sin(f*x + e))
Sympy [B] (verification not implemented)
Leaf count of result is larger than twice the leaf count of optimal. 2509 vs. \(2 (117) = 234\).
Time = 28.37 (sec) , antiderivative size = 2509, normalized size of antiderivative = 19.01
\[
\int \frac {(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^6} \, dx=\text {Too large to display}
\]
[In]
integrate((a+a*sin(f*x+e))**2/(c-c*sin(f*x+e))**6,x)
[Out]
Piecewise((-2310*a**2*tan(e/2 + f*x/2)**10/(1155*c**6*f*tan(e/2 + f*x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**
10 + 63525*c**6*f*tan(e/2 + f*x/2)**9 - 190575*c**6*f*tan(e/2 + f*x/2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7
- 533610*c**6*f*tan(e/2 + f*x/2)**6 + 533610*c**6*f*tan(e/2 + f*x/2)**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 +
190575*c**6*f*tan(e/2 + f*x/2)**3 - 63525*c**6*f*tan(e/2 + f*x/2)**2 + 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c*
*6*f) + 6930*a**2*tan(e/2 + f*x/2)**9/(1155*c**6*f*tan(e/2 + f*x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**10 +
63525*c**6*f*tan(e/2 + f*x/2)**9 - 190575*c**6*f*tan(e/2 + f*x/2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7 - 533
610*c**6*f*tan(e/2 + f*x/2)**6 + 533610*c**6*f*tan(e/2 + f*x/2)**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 + 19057
5*c**6*f*tan(e/2 + f*x/2)**3 - 63525*c**6*f*tan(e/2 + f*x/2)**2 + 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c**6*f)
- 27720*a**2*tan(e/2 + f*x/2)**8/(1155*c**6*f*tan(e/2 + f*x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**10 + 6352
5*c**6*f*tan(e/2 + f*x/2)**9 - 190575*c**6*f*tan(e/2 + f*x/2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7 - 533610*
c**6*f*tan(e/2 + f*x/2)**6 + 533610*c**6*f*tan(e/2 + f*x/2)**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 + 190575*c*
*6*f*tan(e/2 + f*x/2)**3 - 63525*c**6*f*tan(e/2 + f*x/2)**2 + 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c**6*f) + 4
6200*a**2*tan(e/2 + f*x/2)**7/(1155*c**6*f*tan(e/2 + f*x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**10 + 63525*c*
*6*f*tan(e/2 + f*x/2)**9 - 190575*c**6*f*tan(e/2 + f*x/2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7 - 533610*c**6
*f*tan(e/2 + f*x/2)**6 + 533610*c**6*f*tan(e/2 + f*x/2)**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 + 190575*c**6*f
*tan(e/2 + f*x/2)**3 - 63525*c**6*f*tan(e/2 + f*x/2)**2 + 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c**6*f) - 74844
*a**2*tan(e/2 + f*x/2)**6/(1155*c**6*f*tan(e/2 + f*x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**10 + 63525*c**6*f
*tan(e/2 + f*x/2)**9 - 190575*c**6*f*tan(e/2 + f*x/2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7 - 533610*c**6*f*t
an(e/2 + f*x/2)**6 + 533610*c**6*f*tan(e/2 + f*x/2)**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 + 190575*c**6*f*tan
(e/2 + f*x/2)**3 - 63525*c**6*f*tan(e/2 + f*x/2)**2 + 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c**6*f) + 65604*a**
2*tan(e/2 + f*x/2)**5/(1155*c**6*f*tan(e/2 + f*x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**10 + 63525*c**6*f*tan
(e/2 + f*x/2)**9 - 190575*c**6*f*tan(e/2 + f*x/2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7 - 533610*c**6*f*tan(e
/2 + f*x/2)**6 + 533610*c**6*f*tan(e/2 + f*x/2)**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 + 190575*c**6*f*tan(e/2
+ f*x/2)**3 - 63525*c**6*f*tan(e/2 + f*x/2)**2 + 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c**6*f) - 54120*a**2*ta
n(e/2 + f*x/2)**4/(1155*c**6*f*tan(e/2 + f*x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**10 + 63525*c**6*f*tan(e/2
+ f*x/2)**9 - 190575*c**6*f*tan(e/2 + f*x/2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7 - 533610*c**6*f*tan(e/2 +
f*x/2)**6 + 533610*c**6*f*tan(e/2 + f*x/2)**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 + 190575*c**6*f*tan(e/2 + f
*x/2)**3 - 63525*c**6*f*tan(e/2 + f*x/2)**2 + 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c**6*f) + 22440*a**2*tan(e/
2 + f*x/2)**3/(1155*c**6*f*tan(e/2 + f*x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**10 + 63525*c**6*f*tan(e/2 + f
*x/2)**9 - 190575*c**6*f*tan(e/2 + f*x/2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7 - 533610*c**6*f*tan(e/2 + f*x
/2)**6 + 533610*c**6*f*tan(e/2 + f*x/2)**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 + 190575*c**6*f*tan(e/2 + f*x/2
)**3 - 63525*c**6*f*tan(e/2 + f*x/2)**2 + 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c**6*f) - 9790*a**2*tan(e/2 + f
*x/2)**2/(1155*c**6*f*tan(e/2 + f*x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**10 + 63525*c**6*f*tan(e/2 + f*x/2)
**9 - 190575*c**6*f*tan(e/2 + f*x/2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7 - 533610*c**6*f*tan(e/2 + f*x/2)**
6 + 533610*c**6*f*tan(e/2 + f*x/2)**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 + 190575*c**6*f*tan(e/2 + f*x/2)**3
- 63525*c**6*f*tan(e/2 + f*x/2)**2 + 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c**6*f) + 1034*a**2*tan(e/2 + f*x/2)
/(1155*c**6*f*tan(e/2 + f*x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**10 + 63525*c**6*f*tan(e/2 + f*x/2)**9 - 19
0575*c**6*f*tan(e/2 + f*x/2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7 - 533610*c**6*f*tan(e/2 + f*x/2)**6 + 5336
10*c**6*f*tan(e/2 + f*x/2)**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 + 190575*c**6*f*tan(e/2 + f*x/2)**3 - 63525*
c**6*f*tan(e/2 + f*x/2)**2 + 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c**6*f) - 304*a**2/(1155*c**6*f*tan(e/2 + f*
x/2)**11 - 12705*c**6*f*tan(e/2 + f*x/2)**10 + 63525*c**6*f*tan(e/2 + f*x/2)**9 - 190575*c**6*f*tan(e/2 + f*x/
2)**8 + 381150*c**6*f*tan(e/2 + f*x/2)**7 - 533610*c**6*f*tan(e/2 + f*x/2)**6 + 533610*c**6*f*tan(e/2 + f*x/2)
**5 - 381150*c**6*f*tan(e/2 + f*x/2)**4 + 190575*c**6*f*tan(e/2 + f*x/2)**3 - 63525*c**6*f*tan(e/2 + f*x/2)**2
+ 12705*c**6*f*tan(e/2 + f*x/2) - 1155*c**6*f), Ne(f, 0)), (x*(a*sin(e) + a)**2/(-c*sin(e) + c)**6, True))
Maxima [B] (verification not implemented)
Leaf count of result is larger than twice the leaf count of optimal. 1332 vs. \(2 (128) = 256\).
Time = 0.25 (sec) , antiderivative size = 1332, normalized size of antiderivative = 10.09
\[
\int \frac {(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^6} \, dx=\text {Too large to display}
\]
[In]
integrate((a+a*sin(f*x+e))^2/(c-c*sin(f*x+e))^6,x, algorithm="maxima")
[Out]
-2/3465*(5*a^2*(913*sin(f*x + e)/(cos(f*x + e) + 1) - 4565*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 12540*sin(f*x
+ e)^3/(cos(f*x + e) + 1)^3 - 25080*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + 33726*sin(f*x + e)^5/(cos(f*x + e)
+ 1)^5 - 33726*sin(f*x + e)^6/(cos(f*x + e) + 1)^6 + 23100*sin(f*x + e)^7/(cos(f*x + e) + 1)^7 - 11550*sin(f*x
+ e)^8/(cos(f*x + e) + 1)^8 + 3465*sin(f*x + e)^9/(cos(f*x + e) + 1)^9 - 693*sin(f*x + e)^10/(cos(f*x + e) +
1)^10 - 146)/(c^6 - 11*c^6*sin(f*x + e)/(cos(f*x + e) + 1) + 55*c^6*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 - 165*
c^6*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + 330*c^6*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 - 462*c^6*sin(f*x + e)^5
/(cos(f*x + e) + 1)^5 + 462*c^6*sin(f*x + e)^6/(cos(f*x + e) + 1)^6 - 330*c^6*sin(f*x + e)^7/(cos(f*x + e) + 1
)^7 + 165*c^6*sin(f*x + e)^8/(cos(f*x + e) + 1)^8 - 55*c^6*sin(f*x + e)^9/(cos(f*x + e) + 1)^9 + 11*c^6*sin(f*
x + e)^10/(cos(f*x + e) + 1)^10 - c^6*sin(f*x + e)^11/(cos(f*x + e) + 1)^11) - 6*a^2*(671*sin(f*x + e)/(cos(f*
x + e) + 1) - 2200*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 6600*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 - 10890*sin(
f*x + e)^4/(cos(f*x + e) + 1)^4 + 15246*sin(f*x + e)^5/(cos(f*x + e) + 1)^5 - 12936*sin(f*x + e)^6/(cos(f*x +
e) + 1)^6 + 9240*sin(f*x + e)^7/(cos(f*x + e) + 1)^7 - 3465*sin(f*x + e)^8/(cos(f*x + e) + 1)^8 + 1155*sin(f*x
+ e)^9/(cos(f*x + e) + 1)^9 - 61)/(c^6 - 11*c^6*sin(f*x + e)/(cos(f*x + e) + 1) + 55*c^6*sin(f*x + e)^2/(cos(
f*x + e) + 1)^2 - 165*c^6*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + 330*c^6*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 -
462*c^6*sin(f*x + e)^5/(cos(f*x + e) + 1)^5 + 462*c^6*sin(f*x + e)^6/(cos(f*x + e) + 1)^6 - 330*c^6*sin(f*x +
e)^7/(cos(f*x + e) + 1)^7 + 165*c^6*sin(f*x + e)^8/(cos(f*x + e) + 1)^8 - 55*c^6*sin(f*x + e)^9/(cos(f*x + e)
+ 1)^9 + 11*c^6*sin(f*x + e)^10/(cos(f*x + e) + 1)^10 - c^6*sin(f*x + e)^11/(cos(f*x + e) + 1)^11) + 4*a^2*(25
3*sin(f*x + e)/(cos(f*x + e) + 1) - 1265*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 2640*sin(f*x + e)^3/(cos(f*x +
e) + 1)^3 - 5280*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + 5313*sin(f*x + e)^5/(cos(f*x + e) + 1)^5 - 5313*sin(f*x
+ e)^6/(cos(f*x + e) + 1)^6 + 2310*sin(f*x + e)^7/(cos(f*x + e) + 1)^7 - 1155*sin(f*x + e)^8/(cos(f*x + e) +
1)^8 - 23)/(c^6 - 11*c^6*sin(f*x + e)/(cos(f*x + e) + 1) + 55*c^6*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 - 165*c^
6*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + 330*c^6*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 - 462*c^6*sin(f*x + e)^5/(
cos(f*x + e) + 1)^5 + 462*c^6*sin(f*x + e)^6/(cos(f*x + e) + 1)^6 - 330*c^6*sin(f*x + e)^7/(cos(f*x + e) + 1)^
7 + 165*c^6*sin(f*x + e)^8/(cos(f*x + e) + 1)^8 - 55*c^6*sin(f*x + e)^9/(cos(f*x + e) + 1)^9 + 11*c^6*sin(f*x
+ e)^10/(cos(f*x + e) + 1)^10 - c^6*sin(f*x + e)^11/(cos(f*x + e) + 1)^11))/f
Giac [A] (verification not implemented)
none
Time = 0.35 (sec) , antiderivative size = 185, normalized size of antiderivative = 1.40
\[
\int \frac {(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^6} \, dx=-\frac {2 \, {\left (1155 \, a^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{10} - 3465 \, a^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{9} + 13860 \, a^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{8} - 23100 \, a^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{7} + 37422 \, a^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} - 32802 \, a^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 27060 \, a^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 11220 \, a^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 4895 \, a^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 517 \, a^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 152 \, a^{2}\right )}}{1155 \, c^{6} f {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{11}}
\]
[In]
integrate((a+a*sin(f*x+e))^2/(c-c*sin(f*x+e))^6,x, algorithm="giac")
[Out]
-2/1155*(1155*a^2*tan(1/2*f*x + 1/2*e)^10 - 3465*a^2*tan(1/2*f*x + 1/2*e)^9 + 13860*a^2*tan(1/2*f*x + 1/2*e)^8
- 23100*a^2*tan(1/2*f*x + 1/2*e)^7 + 37422*a^2*tan(1/2*f*x + 1/2*e)^6 - 32802*a^2*tan(1/2*f*x + 1/2*e)^5 + 27
060*a^2*tan(1/2*f*x + 1/2*e)^4 - 11220*a^2*tan(1/2*f*x + 1/2*e)^3 + 4895*a^2*tan(1/2*f*x + 1/2*e)^2 - 517*a^2*
tan(1/2*f*x + 1/2*e) + 152*a^2)/(c^6*f*(tan(1/2*f*x + 1/2*e) - 1)^11)
Mupad [B] (verification not implemented)
Time = 9.26 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.08
\[
\int \frac {(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^6} \, dx=-\frac {\sqrt {2}\,a^2\,\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (697\,\cos \left (e+f\,x\right )+\frac {7623\,\sin \left (e+f\,x\right )}{4}+\frac {3977\,\cos \left (2\,e+2\,f\,x\right )}{4}-\frac {3203\,\cos \left (3\,e+3\,f\,x\right )}{16}-\frac {461\,\cos \left (4\,e+4\,f\,x\right )}{8}+\frac {75\,\cos \left (5\,e+5\,f\,x\right )}{16}-462\,\sin \left (2\,e+2\,f\,x\right )-\frac {4983\,\sin \left (3\,e+3\,f\,x\right )}{16}+\frac {187\,\sin \left (4\,e+4\,f\,x\right )}{4}+\frac {77\,\sin \left (5\,e+5\,f\,x\right )}{16}-\frac {12721}{8}\right )}{36960\,c^6\,f\,{\cos \left (\frac {e}{2}+\frac {\pi }{4}+\frac {f\,x}{2}\right )}^{11}}
\]
[In]
int((a + a*sin(e + f*x))^2/(c - c*sin(e + f*x))^6,x)
[Out]
-(2^(1/2)*a^2*cos(e/2 + (f*x)/2)*(697*cos(e + f*x) + (7623*sin(e + f*x))/4 + (3977*cos(2*e + 2*f*x))/4 - (3203
*cos(3*e + 3*f*x))/16 - (461*cos(4*e + 4*f*x))/8 + (75*cos(5*e + 5*f*x))/16 - 462*sin(2*e + 2*f*x) - (4983*sin
(3*e + 3*f*x))/16 + (187*sin(4*e + 4*f*x))/4 + (77*sin(5*e + 5*f*x))/16 - 12721/8))/(36960*c^6*f*cos(e/2 + pi/
4 + (f*x)/2)^11)